#!/bin/bash
go build -tags release -ldflags "-w -s" -o dist/doss-dispatcher
if [ $? -eq 0 ];then
  echo "构建成功"
else
  echo "构建失败"
fi
tools/upx -9 dist/doss-dispatcher
mkdir dist/temp &&
cp -r banner.txt config.yml db start deamon.sh dist
